﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Documents;
using RiskMan.DataClass.Models;
using System.Collections.ObjectModel;
using RiskMan.DataClass.Models.RM;

namespace RiskMan.Views.RiskManager
{
     class RMItemsClass : List<RmItem>
    {
        public RMItemsClass() 
        {
        
        }

        public RMItemsClass GetRunnedItems(ObservableCollection<RmItem> obColl)
        {
            RMItemsClass result = new RMItemsClass();

            for (int i = 0; i < obColl.Count; i++)
                if (obColl[i].isRun == true)
                    result.Add(obColl[i]);

            return result;
        }
    }
}
